// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  // Modules
  modules: [
    '@nuxt/eslint',
    '@nuxt/ui',
    '@vueuse/nuxt',
    '@formkit/auto-animate',
    '@pinia/nuxt',
    '@nuxtjs/i18n',
    '@vite-pwa/nuxt',
    'pinia-plugin-persistedstate',
    '@pinia/colada-nuxt',
    'nuxt-icons',
    '@element-plus/nuxt',
    'nuxt-typed-router',
    'nuxt-svgo',
    'magic-regexp',
    '@vee-validate/nuxt',
    'nuxt-echarts',
    'nuxt-auth-utils',
    '@nuxt/test-utils',
    '@unocss/nuxt'
  ],
  ssr: false,
  devtools: { enabled: true },
  css: ['~/app.css'],

  // @nuxt/ui
  ui: {
    fonts: false
  },
  experimental: {
    viewTransition: true
  },
  compatibilityDate: '2025-07-15',

  nitro: {
    preset: 'static'
  },

  eslint: {
    config: {
      stylistic: {
        commaDangle: 'never',
        braceStyle: '1tbs'
      }
    }
  },

  // @nuxtjs/i18n
  i18n: {
    defaultLocale: 'zh-Hans',
    strategy: 'no_prefix',
    locales: [
      {
        code: 'zh-Hans',
        name: '简体中文',
        file: 'zh-Hans.json'
      },
      {
        code: 'en',
        name: 'English',
        file: 'en.json'
      }
    ]
  }
})
